#include <cstdio>

int main( )
{
    int n, m;
    while ( scanf("%d%d", &n, &m) != EOF )
    {
        if ( n == 0 && m == 0 )
            break;
        if ( n & 1 )
            if ( m & 1 )
                printf("What a pity!\n");
            else
                printf("Wonderful!\n");
        else
            printf("Wonderful!\n");
    }
    return 0;
}
